package com.fozu.common.util;


/**
 * 校验工具类
 * @author ACCP8.0
 *
 */
public class ValidateUtil {
	
	
	
	/**
	 * 确认密码校验
	 * @param pwd
	 * @param confirmPwd
	 * @return
	 */
	public static boolean validConfirmPwd(String pwd,String confirmPwd){
		if(!validPwd(pwd)){
			return false;
		}
		if(!pwd.equals(confirmPwd)){
			return false;
		}
		return true;
	}
	
	
	/**
	 * 校验密码
	 * @param pwd
	 * @return
	 */
	public static boolean validPwd(String pwd){
		if(pwd==null||"".equals(pwd)){
			return false;
		}
		if(pwd.length()<6){
			return false;
		}
		return true;
	}
	
}